<h2>Edition d'un article</h2>

<hr>

<?php if(validation_errors()):?>
  <div class="alert alert-error"><?php echo validation_errors('<p>','</p>');?></div>
<?php endif;?>

<?php echo form_open('admin/editarticle/'.$article->article_id,array('class'=>'form-horizontal'));?>  
  <div class="control-group">
    <label class="control-label">Titre</label>
    <div class="controls">
        <input type="text" name="title" value="<?php echo $article->title; ?>">
    </div>
  </div>
  
  <div class="control-group">
    <label class="control-label">Description</label>
    <div class="controls">
        <textarea rows="4" cols="50" name="description"><?php echo $article->description;?></textarea>
    </div>
  </div>
  
  <div class="control-group">
    <label class="control-label">Prix</label>
    <div class="controls">
        <input type="text" name="price" value=" <?php echo $article->price_amount;?>">
    </div>
  </div>

  <button type="submit" class="btn">Valier</button>

<?php echo form_close();?>
